﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using DBUlitity;
using System.Data;

namespace BLL
{
    public class MFGBLL
    {

        public static string getCustomInfoByID(string ID)
        {
            string jsonStr = "[]";
            List<CustomerNameChejianimg> customerList = MFGDAL.getCustomInfoByID(ID); 
            jsonStr = JSONTools.ScriptSerialize<List<CustomerNameChejianimg>>(customerList);
            return jsonStr;
        }

        public static string getEquNoListByID(string ID)
        {
            string jsonStr = "[]";
            List<EquKaoHaoList> customerList = MFGDAL.getEquNoListByID(ID);
            jsonStr = JSONTools.ScriptSerialize<List<EquKaoHaoList>>(customerList);
            return jsonStr;
        }
        public static string shengchancusha(string EquNo)
        {
            string jsonStr = "[]";
            List<ShengchanCusha> shengchancushalist = MFGDAL.shengchancusha(EquNo); 
            jsonStr = JSONTools.ScriptSerialize<List<ShengchanCusha>>(shengchancushalist);
            return jsonStr;
        }

        public static string shengchancushadangqianfangsha(string EquNo)
        {
            string jsonStr = "[]";
            List<ShengchanCushaAlarm> shengchancushalist = MFGDAL.shengchancushadangqianfangsha(EquNo); 
            jsonStr = JSONTools.ScriptSerialize<List<ShengchanCushaAlarm>>(shengchancushalist);
            return jsonStr;
        }
        public static string getguidaoshengchanByID(string ID)
        {
            string jsonStr = "[]";
            List<guidaoshengchannum> guidaoshengchannum = MFGDAL.getguidaoshengchanByID(ID);
            jsonStr = JSONTools.ScriptSerialize<List<guidaoshengchannum>>(guidaoshengchannum);
            return jsonStr;
        } 
    }
}
